<!--
  Generated template for the ImgEditPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  
    <ion-navbar>
      <ion-title>头像编辑</ion-title>
      <ion-buttons end>
        <button ion-button icon-only (click)="saveImg()" >
          保存
        </button>
      </ion-buttons>
    </ion-navbar>
  
  </ion-header>
  
  
  <ion-content>
    <ion-list>
  
      <ion-item>
			<ion-thumbnail item-start>
				<img *ngIf="selectedImgUrl[0]" [src]="selectedImgUrl[0]">
				<img *ngIf="selectedImgUrl[0]==null" src="./assets/imgs/default.jpg">
			</ion-thumbnail>
			<p class="pfont">照片上传：</p>
			<!--<a href="javascript:;" class="file">
				<input type="file" class="filePrew" name="getFile" accept="image/*" capture="camera" >
			</a>-->
			<img src="./assets/imgs/add2.png" (click)="presentActionSheet()"/>
        <!-- <a href="javascript:;" class="file">选择文件
          <input type="file" ng2FileSelect [uploader]="uploader" multiple="multiple" name="getFile" accept="image/*" (change)="selectedFileOnChanged(i)">
        </a> -->
        <!-- <a *ngFor="let img of selectedImgUrl">
        <img  src="{{img.url}}">
          </a>
       <input type="file" ng2FileSelect [uploader]="uploader" (change)="selectedFileOnChanged($event)"/> -->

       
                    <!--<div class="box-body">
                        <div class="row">
                            <div class="col-md-12" style="margin-top: 10px;">
                                <input type="file" name="FileModel[file]" #imagefileslicense class="file-loading" multiple />
                            </div>
                        </div>

                    </div>-->
      
      </ion-item>
			<div style="position: relative;margin: 10px;">
      	<button id="ok" ion-button small style="display: none">确定</button>
      	<img id="image" src="">
      	<!--<img src="" alt="" id="myImg">-->
      </div>
      
  </ion-list>
  </ion-content>
  
